<template>
    <Panel :class="$style.panel" title="新手特权">
        <section :class="$style.content">
            <div :class="$style.item">
                <h4>APP下载<span :class="$style.red">送888元礼包</span></h4>
                <p :class="$style.gray">新手专享</p>
                <img src="//img12.360buyimg.com/jrpmobile/jfs/t3991/64/2521945388/12110/93c0139/58d1e462Ncf294123.png?width=132&height=132" alt="">
            </div>
            <div :class="$style.item">
                <ul>
                    <li>
                        <img src="//img12.360buyimg.com/jrpmobile/jfs/t5488/298/1036263348/12073/b4f4de97/590ac8e8Ne9def22e.png?width=135&height=135" alt="">
                        <h4 :class="$style.red">领128元新手礼包</h4>
                        <p :class="$style.gray">立即开通</p>
                    </li>
                    <li>
                        <img src="//img12.360buyimg.com/jrpmobile/jfs/t1/1216/39/659/4516/5b923b1cE5943d1c6/dabaf8b842f57eb9.png?width=90&height=90" alt="">
                        <h4>打白条<span :class="$style.red">享免息</span></h4>
                        <p :class="$style.gray">立即开通享豪礼</p>
                    </li>
                </ul>
            </div>
        </section>
    </Panel>
</template>

<script>
    import Panel from '../core/panel.vue'  // 导入panel组件
    export default {
        components : {
            Panel
        }
    }
</script>

<style lang="scss" module>
    @import '../../css/element.scss';
    .panel {
        @include panel;
        >h4 {
            border-bottom: 1px solid #ddd;
        }
        .content {
            @include list(row);
            .item {
                width: 50%;
                box-sizing: border-box;
                &:first-child {
                    padding: 32px 20px;
                    text-align: center;
                    border-right: 1px solid #ddd;
                    img {
                        width: 132px;
                        height: 132px;
                        margin: 20px auto 28px;
                    }
                }
            }
            h4 {
                font-size: 26px;
                line-height: 40px;
            }
            p {
                font-size: 24px;
                margin-top: 8px;
            }
            .red {
                color: #f00;
            }
            .gray {
                font-size: 24px;
                color: #999;
            }
            ul {
                width: 100%;
                li {
                    width: 100%;
                    height: 144px;
                    padding: 32px 28px;
                    box-sizing: border-box;
                    &:first-child {
                        border-bottom: 1px solid #ddd;
                    }
                    h4 {
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        overflow: hidden;
                        text-align: left;
                    }
                    img {
                        width: 80px;
                        height: 80px;
                        float: right;
                    }
                } 
            }
        }
    }
</style>